<notempty name="list">
	<?php $faIcon=['<i class="fa icon-times text-danger"></i>','<i class="fa icon-check text-success"></i>','<i class="fa icon-ban text-warning"></i>'];  ?>
    <volist name="list" id="s" key="y">
        <div >
            <div class="block-list">
                <div class="col-sm-2">{$s.membername}</div>
                <div class="col-sm-2 divfloat text-muted">
                    <gt name="s['sendParent']" value="0">
                    	<?php 	$memberDB=M('Member');
                        		if($s['parent_id']){
                        			$parent_id=$s['parent_id'];
                        		}else{
                                	$parent_id=$memberDB->where(['id'=>$s['member_id']])->getField('pid');
                                }
                        		$parent_name=$memberDB->where(['id'=>$parent_id])->getField('name');
                         ?>
                    	<span title="{$parent_name}">已递交上级({$parent_name})</span>
                    	
                    </gt>
                    <eq name="s['status']" value="0"><span style="color:#d9534f">已驳回</span></eq>
                    <eq name="s['status']" value="1"><span style="color:#3c763d;">已通过</span></eq>
                </div>
                <div class="col-sm-3">
                    <div class="clearp text-muted" title="{$s.comment}"><notempty name="s['comment']">{$s.comment}<else/>无意见</notempty></div>
                </div>
                <div class="col-sm-3 divfloat text-muted">
                    <span class="clearp">
                    <notempty name="s.integrals">
                        <volist name="s['integrals']" id="rvo">
                            {$InteTypeList[$rvo['type']]} : 
                            <b class="text-orange">{$rvo.num}</b>分　
                        </volist>
                    </notempty>
                        <span class="hidden">
                            <gt name="s['ticketnum']" value="0">奖票:<span class="text-orange">{$s.ticketnum}</span></gt>
                        </span>
                    </span>
                </div>
                <div class="col-sm-2 text-muted divfloat">
                    <span class="clearp">{:date('Y-m-d', $s['datatime'])}</span>
                </div>
                <div class="clearfix"></div>
                <script>
					//更新任务面板的审批状态
					$(".scheStatus-{$_GET['id']} .status[title='{$s.membername}'] i").replaceWith('{$faIcon[$s['status']]}');
                </script>
            </div>
        </div>
        
    </volist>
    
    <else/>
    <div style="padding:5px; text-align:center;padding-bottom:10px;"> 暂无审批记录 </div>
</notempty>